
/* Preloader full screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  flex-direction: column;
}

/* Center content */
.preloader-content {
  width: 100%; /* full screen width */
  max-width: 100%;
  text-align: center;
  padding: 0 0px; /* small side padding */
}

/* Spinner and name in one row */
.name-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px; /* space between spinner and name */
  margin-bottom: 20px;
}

/* Spinner styling */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #000;
  border-top: 4px solid #FF4B2B;
  border-radius: 50%;
  animation: spin 1s linear infinite !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Name styling */
.preloader-name {
  font-size: 24px;
  font-weight: bold;
}

/* Full width progress bar container with 90° edges */
.progress-container {
  width: 100%;
  height: 20px;
  background: #000;
  overflow: hidden;
  border-radius: 0; /* 90 degree edges */
  margin-bottom: 10px;
}

/* Gradient progress bar */
.progress-bar {
  width: 0%;
  height: 10%;
  background: linear-gradient(90deg, #FF416C, #FF4B2B); /* blue → purple gradient */
  transition: width 0.1s linear;
}

/* Percentage below the bar */
.progress-percentage {
  font-size: 24px;
  color: white;
}

    .hero-post {
      position: relative;
      margin-bottom: 2rem;
      max-width: 100%;
      overflow: hidden;
      border-radius: 16px;
    }
    .hero-post img {
      width: 100%;
      height: 500px;
      object-fit: fill;
      display: block;
      border-radius: 16px;
    }
    .hero-post .overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: rgba(255,255,255, 0.9);
      color: black;
      padding: 1rem;
    }
    .hero-post .overlay h2 {
      margin: 0;
      font-size: 1.6rem;
      color: black;
    }
     .hero-post .overlay p {
      color: black;
    }

    .hero-post a{
      color: #DA4453;
    }
    .post-card a{
      color: #DA4453;
    }
    .posts-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }
    .post-card {
      background: #fff;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .post-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }
    .post-card img {
      width: 100%;
      height: 160px;
      object-fit: fill;
    }
    .post-card .content {
      padding: 1rem;
    }
    .post-card .content h3 {
      margin: 0 0 0.5rem;
      font-size: 1.2rem;
    }
    .post-card .content p {
      color: #000;
      font-size: 0.95rem;
      line-height: 1.4;
    }
    .post-card .meta {
      font-size: 0.85rem;
      color: #888;
      margin-bottom: 0.75rem;
    }


/* ---------------------- MOBILE ADJUSTMENTS ---------------------- */
@media (max-width: 768px) {
  .hero-post {
    position: static;        /* remove absolute positioning */
    margin-bottom: 1rem;
    border: 0px solid #ddd;  /* same as post cards */
    border-radius: 8px;
    overflow: hidden;
    background: #fff;        /* same background as cards */
  }

  .hero-post img {
    border-radius: 0;        /* images flush with card */
    width: 100%;
    height: auto;
  }

  .hero-post .overlay {
    position: static;         /* overlay becomes normal text */
    background: none;
    color: black;
    padding: 0.5rem 1rem;
  }

  .hero-post .overlay h2 {
    font-size: 1rem;         /* match grid posts */
    margin: 0 0 0.5rem 0;
  }

  .hero-post .overlay p {
    font-size: 0.8rem;
    margin: 0;
  }
}

/* Pagination container */
.pagination {
  display: flex;
  justify-content: center; /* center buttons */
  gap: 10px;               /* space between buttons */
  margin-top: 20px;        /* spacing from posts */
}

/* Buttons style */
.pagination button {
  background-color: #000;   /* blue background */
  color: #fff;                 /* white text */
  border: none;
  padding: 10px 18px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Hover effect */
.pagination button:hover {
  background-color: #f6f6f6; /* darker blue */
  color: #000 !important;
  transform: scale(1.05);     /* slight grow */
}

/* Disabled state (optional) */
.pagination button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

************************
/* Toggle Switch */
.video-toggle-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 1rem 0;
}

.toggle-label {
  font-size: 0.9rem;
  color: #000;
}

/* Switch styling */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input { display: none; }

.slider {
  position: absolute;
  cursor: pointer;
  background-color: #ccc;
  border-radius: 24px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .4s;
}

input:checked + .slider {
  background-color: #000;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Light YouTube / Vimeo thumbnail */
.video-lite {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.hero-post .video-lite img {
  width: 100%;
  height: 500px;
  object-fit: fill;
}

.post-card .video-lite img {
  width: 100%;
  height: 160px;
  object-fit: fill;
}

/* Play button overlay */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  background: url('') no-repeat center center / contain;
  border: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.play-button:hover { opacity: 1; }

iframe, video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
}
